package sctu.edu.java.year2016.team06.chenqiang.day20160526.chapter8_3;

/**
 * Created by XQ on 2016/5/26
 * 创建一个子类和父类，分别创建构造方法，然后向子类和父类添加成员变量和成员方法，并总结构建子类对象时的顺序。.
 */
public class LangYaBang extends Teleplay {
    private String LYBname;

    public LangYaBang() {
        System.out.println("This is construction of LangYaBang!");
    }

    public void setName(String name) {
        this.LYBname = name;
        System.out.println(LYBname);
    }
}
